package demo3;

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        String str=scanner.nextLine();
        String[] sstr = str.split(",");
        String str1=sstr[0];
        String str2=sstr[1];
        StringBuilder stringBuilder1=new StringBuilder(str1);
        StringBuilder stringBuilder2=new StringBuilder(str2);
        stringBuilder1.reverse();
        stringBuilder2.reverse();
        int llength=stringBuilder1.length();
        int slength=stringBuilder2.length();
        if(llength<slength){
            llength = stringBuilder2.length();
            slength = stringBuilder1.length();
        }
        int count = 0;
        stringBuilder1.deleteCharAt(stringBuilder1.length()-1);
        stringBuilder1.deleteCharAt(0);
        stringBuilder2.deleteCharAt(stringBuilder2.length()-1);
        stringBuilder2.deleteCharAt(0);
        StringBuilder sumBuilder=new StringBuilder();
        llength-=2;
        slength-=2;
        int i = 0;
        for (i = 0; i < slength; i++) {
            char a = stringBuilder1.charAt(i);
            char b = stringBuilder2.charAt(i);
            int x = Integer.parseInt(String.valueOf(a));
            int y = Integer.parseInt(String.valueOf(b));
            int z = x+y+count;
            sumBuilder.append(z%2);
            count = z/2;
        }
        if(llength==slength){
            if(count>0){
                sumBuilder.append(count);
                count=0;
            }
        } else if (llength==stringBuilder1.length()) {
            for (; i < llength; i++) {
                int x = Integer.parseInt(String.valueOf(stringBuilder1.charAt(i)));
                int z = x+count;
                sumBuilder.append(z%2);
                count = z/2;
            }
        }else {
            for (; i < llength; i++) {
                int x = Integer.parseInt(String.valueOf(stringBuilder2.charAt(i)));
                int z = x+count;
                sumBuilder.append(z%2);
                count = z/2;
            }
        }
        if(count>0){
            sumBuilder.append(count);
        }
        sumBuilder.reverse();
        System.out.println("\""+sumBuilder.toString()+"\"");
    }
}
